package com.example.leetcode.tree;

import lombok.Data;

@Data
public class NodeTree {
    public String data;
    public NodeTree left = null;
    public NodeTree right = null;
    public boolean flag;

    NodeTree(String data) {
        this.data = data;
    }

    NodeTree() {
    }

    @Override
    public String toString() {

        return this.data;
    }

}

